package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@ApiModel(value="t_flower_outorder对象", description="出库单主表")
@Data
public class FlowerOutorderHZ implements Serializable {
    private static final long serialVersionUID = 1L;
    /**id*/

    @ApiModelProperty(value = "id")
    private String id;

    /**来源基地*/
    @Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源基地")
    @Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    private String sourceBase;
    /**来源大棚*/
    @Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源大棚")
    @Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    private String sourceGreenhouse;

    @Excel(name = "库房", width = 15,dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;

    @Excel(name = "成本中心", width = 15 , dicCode = "ch_cost"  )
    @Dict(dicCode = "ch_cost" )
    @ApiModelProperty(value = "成本中心")
    private String cost;

    /**品种*/
    @Excel(name = "品种", width = 15)
    @ApiModelProperty(value = "品种")
    private String variety;
    /**品种编码*/
    @Excel(name = "品种编码", width = 15)
    @ApiModelProperty(value = "品种编码")
    private String varietyCode;
    /**规格*/
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String packingSpecifications;
    /**花杆长度*/
    @Excel(name = "花杆长度", width = 15)
    @ApiModelProperty(value = "花杆长度")
    private String flowerPoleLength;

    /**数量*/
    @Excel(name = "数量", width = 15, type=4, isStatistics=true)
    @ApiModelProperty(value = "数量")
    private BigDecimal number;


    @Excel(name = "单价", width = 15, type=4)
    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @Excel(name = "总价", width = 15, type=4, isStatistics=true)
    @ApiModelProperty(value = "总价")
    private BigDecimal totalprice;

    @Excel(name = "结算状态", width = 15, type=4, isStatistics=true)
    @ApiModelProperty(value = "结算状态")
    private String account;

    //扫码表关联的出库单子表的id
    private String outOrderinfoID;

}
